package com.hyper_yang.javase.supplement.learnInstanceInit;

public class Animal {
    String name = "Animal";

    {
        System.out.println("Animal的普通代码块");
    }

    public Animal() {
        super();
        System.out.println("Animal的无参构造");
    }
}

class Dog extends Animal {
    int age = 20;

    {
        System.out.println("Dog的普通代码块");
    }

    public Dog() {
        super();
        System.out.println("Dog的无参构造");
    }
}
